import 'author_basic_info.dart';

// 帖子详情信息
class PostDetailInfo {
  final AuthorBasicInfo authorBasicInfo;
  final bool isMy;
  final String createTime;
  final String content;
  final String like_num;
  final bool isLike;
  final List<dynamic> files;

  PostDetailInfo({
    this.authorBasicInfo,
    this.isMy,
    this.createTime,
    this.content,
    this.like_num,
    this.isLike,
    this.files,
  });

  factory PostDetailInfo.init(Map<String, dynamic> json) {
    return PostDetailInfo(
      authorBasicInfo: AuthorBasicInfo.init(json['author']),
      isMy: json['isMy'],
      createTime: json['createTime'],
      content: json['content'],
      like_num: json['like_num'],
      isLike: json['isLike'],
      files: json['files'],
    );
  }
}
